<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>6.元素背景渐变色使用</title>
  <style>
    article {
     
     background: linear-gradient(red, rgb(0, 0, 200), green, rgba(122, 211, 100, 0));
  
    }
  nav {

  }
  </style>
</head>

<body>
  <article>
    <nav>
       
    </nav>
    <div>
      <h2>houdunren.com</h2>

    </div>
  </article>
</body>

</html>